#include "Parent.h"
#include <iostream>
using namespace std;

Parent::Parent()
{
        a = 0;
        b = 0;
}

Parent::Parent(int a, int b)
{
        this->a = a;
        this->b = b;
        cout<<"父类构造函数"<<endl;
}

Parent::~Parent()
{
        cout<<"父类析够函数"<<endl;
}

void Parent::print()
{
        cout<<"a = "<<a<<endl;
        cout<<"b = "<<b<<endl;
        cout<<"我是爹"<<endl;
}